package com.qingcloud.adminbackend.pojo.dto.sysproduct;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新增产品解码器请求DTO
 *
 * @author yangfan
 * @since 2021/11/5 17:01
 */
@Data
public class AddProductDecoderDTO {

    /**
     * 产品Id
     */
    @ApiModelProperty(value = "产品Id")
    @NotNull(message = "产品Id不能为空")
    private Integer productId;

    /**
     * 解码器名称
     */
    @ApiModelProperty(value = "解码器名称")
    @NotBlank(message = "解码器名称不能为空")
    private String name;

    /**
     * 源码
     */
    @ApiModelProperty(value = "源码")
    private String source;
}
